package li.buda.blueprint.blazeds.server.component;

import li.buda.blueprint.blazeds.server.dto.PersonDTO;

public class RemoteService {
    public String sayHello(String who) {
        return "Hello, " + who;
    }

    public String raiseException(Boolean raise) throws RemoteServiceException {
        if (raise) {
            throw new RemoteServiceException("Exception raised");
        } else {
            return "Result is here!";
        }
    }

    public PersonDTO getPerson() {
        PersonDTO p = new PersonDTO();
        p.setUsername("Username");
        p.setPassword("Password");
        return p;
    }
}
